<div class="states view">
    <h2><?php echo __('State'); ?></h2>
    <dl>
        <dt><?php echo __('Id'); ?></dt>
        <dd>
            <?php echo h($state['State']['id']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Title'); ?></dt>
        <dd>
            <?php echo h($state['State']['title']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Code'); ?></dt>
        <dd>
            <?php echo h($state['State']['code']); ?>
            &nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Edit State'), array('action' => 'edit', $state['State']['id'])); ?> </li>
        <li><?php echo $this->Form->postLink(__('Delete State'), array('action' => 'delete', $state['State']['id']), null, __('Are you sure you want to delete # %s?', $state['State']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List States'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New State'), array('action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Addresses'), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Address'), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Schools'), array('controller' => 'user_schools', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Waivers Releases'), array('controller' => 'waivers_releases', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Waivers Release'), array('controller' => 'waivers_releases', 'action' => 'add')); ?> </li>
    </ul>
</div>
<div class="related">
    <h3><?php echo __('Related Addresses'); ?></h3>
    <?php if (!empty($state['Address'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Is Primary'); ?></th>
                <th><?php echo __('Mailing Address'); ?></th>
                <th><?php echo __('Apt No'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('Zip'); ?></th>
                <th><?php echo __('No Of Aduldts'); ?></th>
                <th><?php echo __('No Of Children'); ?></th>
                <th><?php echo __('Is Allowed Mail'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($state['Address'] as $address): ?>
                <tr>
                    <td><?php echo $address['id']; ?></td>
                    <td><?php echo $address['user_id']; ?></td>
                    <td><?php echo $address['is_primary']; ?></td>
                    <td><?php echo $address['mailing_address']; ?></td>
                    <td><?php echo $address['apt_no']; ?></td>
                    <td><?php echo $address['city']; ?></td>
                    <td><?php echo $address['state_id']; ?></td>
                    <td><?php echo $address['zip']; ?></td>
                    <td><?php echo $address['no_of_aduldts']; ?></td>
                    <td><?php echo $address['no_of_children']; ?></td>
                    <td><?php echo $address['is_allowed_mail']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'addresses', 'action' => 'view', $address['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'addresses', 'action' => 'edit', $address['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'addresses', 'action' => 'delete', $address['id']), null, __('Are you sure you want to delete # %s?', $address['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New Address'), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related User Schools'); ?></h3>
    <?php if (!empty($state['UserSchool'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Name'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('School Type Id'); ?></th>
                <th><?php echo __('Years At School'); ?></th>
                <th><?php echo __('Grade Level'); ?></th>
                <th><?php echo __('Graduated'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($state['UserSchool'] as $userSchool): ?>
                <tr>
                    <td><?php echo $userSchool['id']; ?></td>
                    <td><?php echo $userSchool['name']; ?></td>
                    <td><?php echo $userSchool['city']; ?></td>
                    <td><?php echo $userSchool['user_id']; ?></td>
                    <td><?php echo $userSchool['state_id']; ?></td>
                    <td><?php echo $userSchool['school_type_id']; ?></td>
                    <td><?php echo $userSchool['years_at_school']; ?></td>
                    <td><?php echo $userSchool['grade_level']; ?></td>
                    <td><?php echo $userSchool['graduated']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'user_schools', 'action' => 'view', $userSchool['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'user_schools', 'action' => 'edit', $userSchool['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_schools', 'action' => 'delete', $userSchool['id']), null, __('Are you sure you want to delete # %s?', $userSchool['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
<div class="related">
    <h3><?php echo __('Related Waivers Releases'); ?></h3>
    <?php if (!empty($state['WaiversRelease'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Code Of Conduct'); ?></th>
                <th><?php echo __('Photo Releases'); ?></th>
                <th><?php echo __('Video Releases'); ?></th>
                <th><?php echo __('First Name'); ?></th>
                <th><?php echo __('Last Name'); ?></th>
                <th><?php echo __('Phone'); ?></th>
                <th><?php echo __('Address'); ?></th>
                <th><?php echo __('Apt No'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('Zip'); ?></th>
                <th><?php echo __('Relationship To Participant'); ?></th>
                <th><?php echo __('Name Of Insurance'); ?></th>
                <th><?php echo __('Medical Insurance No'); ?></th>
                <th><?php echo __('Disabilities'); ?></th>
                <th><?php echo __('Disability Explanation'); ?></th>
                <th><?php echo __('Allergy'); ?></th>
                <th><?php echo __('Allergy Explaination'); ?></th>
                <th><?php echo __('Taking Medication'); ?></th>
                <th><?php echo __('Medication Explaination'); ?></th>
                <th><?php echo __('Digital Signature'); ?></th>
                <th><?php echo __('Digital Date Stamp'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($state['WaiversRelease'] as $waiversRelease): ?>
                <tr>
                    <td><?php echo $waiversRelease['id']; ?></td>
                    <td><?php echo $waiversRelease['user_id']; ?></td>
                    <td><?php echo $waiversRelease['code_of_conduct']; ?></td>
                    <td><?php echo $waiversRelease['photo_releases']; ?></td>
                    <td><?php echo $waiversRelease['video_releases']; ?></td>
                    <td><?php echo $waiversRelease['first_name']; ?></td>
                    <td><?php echo $waiversRelease['last_name']; ?></td>
                    <td><?php echo $waiversRelease['phone']; ?></td>
                    <td><?php echo $waiversRelease['address']; ?></td>
                    <td><?php echo $waiversRelease['apt_no']; ?></td>
                    <td><?php echo $waiversRelease['city']; ?></td>
                    <td><?php echo $waiversRelease['state_id']; ?></td>
                    <td><?php echo $waiversRelease['zip']; ?></td>
                    <td><?php echo $waiversRelease['relationship_to_participant']; ?></td>
                    <td><?php echo $waiversRelease['name_of_insurance']; ?></td>
                    <td><?php echo $waiversRelease['medical_insurance_no']; ?></td>
                    <td><?php echo $waiversRelease['disabilities']; ?></td>
                    <td><?php echo $waiversRelease['disability_explanation']; ?></td>
                    <td><?php echo $waiversRelease['allergy']; ?></td>
                    <td><?php echo $waiversRelease['allergy_explaination']; ?></td>
                    <td><?php echo $waiversRelease['taking_medication']; ?></td>
                    <td><?php echo $waiversRelease['medication_explaination']; ?></td>
                    <td><?php echo $waiversRelease['digital_signature']; ?></td>
                    <td><?php echo $waiversRelease['digital_date_stamp']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'waivers_releases', 'action' => 'view', $waiversRelease['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'waivers_releases', 'action' => 'edit', $waiversRelease['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'waivers_releases', 'action' => 'delete', $waiversRelease['id']), null, __('Are you sure you want to delete # %s?', $waiversRelease['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New Waivers Release'), array('controller' => 'waivers_releases', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
